﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace SyncList.Business.ValueObject
{


    /// <summary>
    /// Réglages de l'application courante sur un PC quelconque
    /// </summary>
    public class SyncListSettings : INotifyPropertyChanged
    {

        #region Attributs

        /// <summary>
        /// Nom de l'utilisateur
        /// </summary>
        private string _userName = "Anonymous";


        #endregion

        #region Constructeur

        /// <summary>
        /// Constructeur
        /// </summary>
        public SyncListSettings()
        { 
        }

        #endregion

        #region Propriétés


        /// <summary>
        /// Nom de l'utilisateur
        /// </summary>
        public string UserName
        {
            get { return _userName; }
            set { _userName = value; OnPropertyChanged("UserName"); }
        }




        #endregion


        public event PropertyChangedEventHandler PropertyChanged;

        protected void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }

    }


}
